/**
   PHOTOS
*/

	var illLargeCurrent = null;
	var illLargeNew = null;
	var illSmallCurrent = null;
	var illSmallNew = null;

	function showIllustration(illId) {
		illLargeNew = document.getElementById('ill-large-' + illId);
		if(illLargeNew != illLargeCurrent) {
			if(illLargeCurrent) {
				illLargeCurrent.style.display = 'none';
			}
			if(illLargeNew) {
				illLargeNew.style.display = 'block';
				illLargeCurrent = illLargeNew;
			}
		}
		illSmallNew = document.getElementById('ill-small-' + illId);
		if(illSmallNew != illSmallCurrent) {
			if(illSmallCurrent) {
				illSmallCurrent.className = 'normal pulledin';
			}
			if(illSmallNew) {
				illSmallNew.className = 'active';
				illSmallCurrent = illSmallNew;
			}
		}
	}
	function closeIllustration(illId) {
		illLargeCurrent = document.getElementById('ill-large-' + illId);
		illLargeCurrent.style.display = 'none';
		illLargeCurrent = null;
		illSmallCurrent = document.getElementById('ill-small-' + illId);
		illSmallCurrent.className = 'normal pulledin';
		illSmallCurrent = null;
	}
	function pullOutPreview(illId) {
		illSmallNew = document.getElementById('ill-small-' + illId);
		if(illSmallNew != illSmallCurrent) {
			illSmallNew.className = 'pulledout';
		}
	}
	function pullInPreview(illId) {
		illSmallNew = document.getElementById('ill-small-' + illId);
		if(illSmallNew != illSmallCurrent) {
			illSmallNew.className = 'pulledin';
		}
	}
